package com.hsylient.springboot.service;

import cn.hutool.core.util.RandomUtil;
import com.hsylient.springboot.entity.Student;
import com.hsylient.springboot.mapper.StudentMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class StudentService {

    @Resource
    private StudentMapper studentMapper;

    public Student findById(Long id) {
        return studentMapper.selectByPrimaryKey(id);
    }


    public static void main(String[] args) {
        while (true) {
            String s = RandomUtil.randomString(RandomUtil.BASE_CHAR_NUMBER + RandomUtil.BASE_CHAR.toUpperCase(), 8);

            System.out.println(s);
        }

    }
}
